package com.eclink.asset.consume.domain.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eclink.asset.domain.dao.CommonEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 耗材档案
 * 
 * @author chenshixian
 */
@ApiModel(description="耗材档案")
@Data
public class ConsumeFile extends CommonEntity {

    @ApiModelProperty("ID")
    private Integer id;

    @ApiModelProperty("编码")
    @Excel(name = "编码")
    private String number;

    @ApiModelProperty("名称")
    @Excel(name = "名称")
    private String name;

    @ApiModelProperty("分类ID")
    @Excel(name = "分类ID")
    private Long categoryId;

    @ApiModelProperty("分类名称")
    @Excel(name = "分类名称")
    @TableField(exist = false)
    private String categoryName;

    @Excel(name = "商品条码")
    private String barcode;

    @ApiModelProperty("品牌")
    @Excel(name = "品牌")
    private String brand;

    @ApiModelProperty("型号")
    @Excel(name = "型号")
    private String model;

    @ApiModelProperty("单价")
    @Excel(name = "单价")
    private BigDecimal price;

    @ApiModelProperty("计量单位")
    @Excel(name = "计量单位")
    private String unit;

    @ApiModelProperty("限领数量（人/月）")
    @Excel(name = "限领数量（人/月）")
    private Integer useLimit;

    @ApiModelProperty("安全库存上限")
    @Excel(name = "安全库存上限")
    private Integer inventoryMax;

    @ApiModelProperty("安全库存下限")
    @Excel(name = "安全库存下限")
    private Integer inventoryMin;

    @ApiModelProperty("备注")
    @Excel(name = "备注")
    private String remark;

    @ApiModelProperty("图片地址")
    private String imgUrl;

    private Integer state;

    private int delFlag;

}
